#include "common/bar/bar.pb.h"
#include "common/foo/foo.pb.h"

#include "c_proto.hh"
#include <iostream>

using namespace std;

int main(int argc, char** argv)
{
    bar_msg msg_send;
    msg_send.set_name("hello world");
    cout << msg_send.DebugString() << "===" << endl;

    size_t sz = msg_send.ByteSize();
    string buffer;
    msg_send.SerializeToString(&buffer);

    bar_msg msg_recv;
    msg_recv.ParseFromString(buffer);
    
    cout << msg_recv.DebugString() << "===" << endl;

    return 0;
}
